prompt = "\nPlease enter the name of a city you have visited::"
prompt += "\nEnter 'quit' to end the program.\n"

while True:
    city = input(prompt)

# break 是立即跳出循环
    if city == 'quit':
        break
    else:
        print("I'd love to go to " + city.title() + "!")